package mastermind.socket;

/**
 * Simple protocol describing the states and responses of the
 * client and server.
 * @author Brendan
 *
 */
public class protocol {

	public static final int SERVER_PORT			= 2011;
	public static final int ATTEMPT_LOGIN		= 0x000000A0;
	public static final int SEND_LOGIN_INFO		= 0x000000A1;
	public static final int LOGIN_SUCCESS 		= 0x000000AA;
	public static final int LOGIN_FAILED 		= 0x000000AB;
	public static final int LOGIN_END 			= 0x000000AC;
	public static final int ATTEMPT_REGISTER 	= 0x000000B0;
	public static final int SEND_REGISTER_INFO	= 0x000000B1;
	public static final int REGISTER_SUCCESS 	= 0x000000BB;
	public static final int REGISTER_FAILED 	= 0x000000BA;
	public static final int REGISTER_END		= 0x000000BC;
	public static final int ATTEMPT_START_GAME	= 0x00000AAA;
	public static final int GAME_STARTED 		= 0x00000001;
	public static final int GAME_ENDED 			= 0x00000002;
	public static final int TURN_START 			= 0x00000020;
	public static final int TURN_END 			= 0x00000021;
	public static final int TURN_COUNT 			= 0x00000022;
	public static final int SEND_FEEDBACK		= 0x00000023;
	public static final int TIMEOUT 			= 0xAAAAAAAA;
	public static final int CLIENT_CLOSING 		= 0xFFFFFFFF;
	public static final int GAME_WIN			= 0x000000E1; // this & below is added by brendan
	public static final int GAME_LOSE			= 0x000000E2;
}
